<#include "common/main.html">
<#macro bodyId>common-edit</#macro>
<#macro content>

<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main ty-common-page">
    <h1 class="page-header">红包活动时间表
        <div class="btns">
            <a class="btn btn-primary" href="/awardTimeRule/list">返回红包活动时间列表</a>
        </div>
    </h1>

    <form class="form-horizontal ac-form" role="form">
        <input type="hidden" class="form-control ac-form-item" name="id" value="${awardTimeRule.id}" readonly required/>


        <div class="form-group">
            <label class="col-sm-2 control-label ">开始时间：</label>
            <div class="col-sm-3">
                <input class="form-control ac-form-item" name="startTime" value="${awardTimeRule.startTime}" placeholder="yyyy-MM-dd HH:mm:ss" />
            </div>


            <label class="col-sm-2 control-label ">结束时间：</label>
            <div class="col-sm-3">
                <input class="form-control ac-form-item" name="endTime" value="${awardTimeRule.endTime}" placeholder="yyyy-MM-dd HH:mm:ss" />
            </div>
        </div>
        
        <div class="form-group">


            <label class="col-sm-2 control-label required">权重：</label>
            <div class="col-sm-3">
                <input class="form-control ac-form-item" name="weight" value="${awardTimeRule.weight}" placeholder="默认10" required/>
            </div>

            <label class="col-sm-2 control-label ">有效注册数：</label>
            <div class="col-sm-3">
                <input class="form-control ac-form-item" name="count" value="${awardTimeRule.count}" placeholder="" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">未开始显示文字：</label>
            <div class="col-sm-8">
                <textarea class="form-control ac-form-item" placeholder="" rows="3" name="tip" required>${awardTimeRule.tip}</textarea>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-8">
                <button type="submit" class="btn btn-success ">保存</button>
            </div>
        </div>
    </form>

</div>

<script>
    var config = {
            save: '/awardTimeRule/createOrUpdate',
    	    successRedirectApi:'${rc.contextPath}/awardTimeRule/list'
    }
</script>

</#macro>


<script>


</script>